package com.lqd.mall.system.controller;

import com.lqd.mall.basis.response.Result;
import com.lqd.mall.interaction.basis.vo.TableDataInfoVo;
import com.lqd.mall.interaction.system.SysRoleEntity;
import com.lqd.mall.system.SysRoleControllerApi;
import com.lqd.mall.system.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 零起点
 * @create 2022-03-22 22:50
 */
@RestController
public class SysRoleController  implements SysRoleControllerApi {

    @Autowired
    ISysRoleService sysRoleService;

    @Override
    public Result<TableDataInfoVo<SysRoleEntity>> list(SysRoleEntity entity) {
        TableDataInfoVo<SysRoleEntity> dataInfoVo = sysRoleService.list(entity);
        return Result.SUCCESS(dataInfoVo);
    }
}
